import VueRouter from 'vue-router'

import HomeContainer from './components/tabbar/HomeContainer.vue'
import MemberContainer from './components/tabbar/MemberContainer.vue'
import SearchContainer from './components/tabbar/SearchContainer.vue'
import ShorpContainer from './components/tabbar/ShorpContainer.vue'
import newListContainer from './components/tabbar/news/newListContainer.vue'
import newsInfor from './components/tabbar/news/NewsInfo.vue'
import photoList from './components/tabbar/photo/photoList.vue'

var router = new VueRouter({
    routes: [ //配置路由
        {
            path:'/',
            redirect:'/home'
        },
        {
            path: '/home',
            component: HomeContainer
        },
        {
            path: '/member',
            component: MemberContainer
        },
        {
            path: '/shopcart',
            component: SearchContainer
        },
        {
            path: '/search',
            component: ShorpContainer
        },
        {
            path: '/home/newList',
            component: newListContainer
        },
        {
            path: '/home/newList/:id',
            component: newsInfor
        },
        {
            path: '/home/phototList',
            component: photoList
        },

    ],
    linkActiveClass: 'mui-active',
})

export default router